//  This software code is made available "AS IS" without warranties of any
//  kind.  You may copy, display, modify and redistribute the software
//  code either by itself or as incorporated into your code; provided that
//  you do not remove any proprietary notices.  Your use of this software
//  code is at your own risk and you waive any claim against Amazon
//  Digital Services, Inc. or its affiliates with respect to your use of
//  this software code. (c) 2006-2007 Amazon Digital Services, Inc. or its
//  affiliates.

package com.vzaar.uploader {
	
	/**
	 * Provides configuration options for a POST request to S3.
	 */
	public class S3UploadOptions {
		
		/**
		 * A canned access control list for the object being uploaded to S3.
		 * 
		 * Valid values are:
		 *    private
		 *    public-read
		 *    public-read-write
		 *    authenticated-read
		 */
		public var acl:String;
		
		/**
		 * The MIME type of the object being uploaded.
		 */
		public var contentType:String;
		
		/**
		 * Base64 encoded S3 POST policy document used to validate this request.
		 *
		 * For more details on how to build a policy document, see:
		 * http://docs.amazonwebservices.com/AmazonS3/2006-03-01/
		 */
		public var policy:String;
		
		/**
		 * Base64 encoded signature of the S3 POST policy document used to validate this request.
		 *
		 * For more details on how to build a policy document, see:
		 * http://docs.amazonwebservices.com/AmazonS3/2006-03-01/
		 * 
		 * You can use the S3PostSamplePolicyGenerator application included in this sample code to
		 * generate policy documents and sign them with your secret key.
		 */
		public var signature:String;
		
		/**
		 * A flag indicating whether HTTPS should be used.
		 */
		public var secure:Boolean;
		public var isFlash:Boolean;
		public var expiration:String;
		public var fileName:String;
		public var key:String;
	}
}
